Wildlife habitat in Switzerland is becoming increasingly restricted. Due to urban fragmentation and expansion of agricultural areas, the habitat of wild animals is no longer as connected and diverse as it was (Rutten et al., 2020). However, in Switzerland, there is currently a spread of wild boar, and as food supply in forest areas and forests themselves are getting scarce, they are roaming into agricultural areas to feed on easily accessible crops (Calenge et al., 2004). This spreading of wild boars into human modified areas is also constantly increasing (Scillitani and Toso, 2010).
Wild boar are predominantly nocturnal and rest during the day in forested habitats or in marshy areas. This has been shown in studies such as in Servanty et al. (2007), where feral swine movement data were measured and analysed for their zonal behaviour. Moreover, wild boar live mainly in socially organized family groups that can contain up to 30 animals, lead by dominant females (Scillitani and Toso, 2010). These groups usually show high site fidelity (Dardaillon, 1986). Males separate themselves from the family they grew up in even before they reach one year of age. After that, they continue to live solitary, except during the mating season, where fights between males determine who is having the opportunity to mate with a female. Due to these characteristics, it comes unsurprising that in wild boar, that females usually tolerate each others and their territories overlap. Males, however, are usually more territorial (Servanty et al 2007).
As wild boar appear to show interesting territorial behaviour, we here want to explore ways to analyse GPS data of these animals on territories and to detect territorial behaviours computationally. In the Bern area around Lac de Neuchatel, GPS data has been collected over the last years and it provides information on movements in their habitat and may help understand behavioural patterns, such as the feeding of wild boars in fragmented areas or the efficiency of scaring devices to protect farmlands. In this project we will have a closer look at the territoriality among different wild boars and how they use their habitat. Therefore, we asked the following questions:
Wild boars in the region above Lake Neuchâtel were tracked using GPS trackers. The GPS data were collected by Dr. Stefan Suter and Team (ZHAW) during a study on the efficiency of scaring devices in agricultural areas. The data set used in this project contains 19 different wild boar. These individuals were tracked over differing periods of time between 28.05.2014 and 18.10.2016, and were also monitored using different sampling intervals between each GPS point, with a minimal sampling interval of one minute. Since were interested is territorial behaviours, which are best detected using small sampling intervals, we focused on those five individuals that were tracked simultaneously with a sampling interval of 1 minute. For each of those individuals, the following attributes were selected:
Additionally, at the beginning we created the variable “timelag”, which represents the time between each sampling occasion. Furthermore, we used data from the Geopackage “Feldaufnahmen_Fanel.gpkg”, where spatial properties were mapped. We extracted forest polygons to distinct between forest habitats (retreat habitat) and non-forest habitats, where wild boar usually feed.
We here present our methods by following our workflow through the data processing and the exploratory data analysis (EDA). Later in this section, we will also present our results together with the methods used to produce them. To answer our research questions, we tried different approaches delivering interesting insights into the territorial behaviour of these wild boar. All the code and plots produced are reproducible and generalized. It can be used on any animal data that is available or converted into the same structure. Otherwise, the code can be adapted by changing the used column names inside the functions and similar data processing. Therefore, one could use this code to easily analyze all the animals in the data set with any sampling rate. But due to lack of time, we decided to restrict our analysis on these five individuals with a one minute sampling interval.
The following libraries were used in the course of this analysis:
In a first step, all the data was loaded, included columns inspected and unused columns were removed.
## [1] "TierID" "TierName" "CollarID" "DatetimeUTC"
## [5] "E" "N" "day" "moonilumination"
## [1] 19
Then, the variable “timelag” was created and inspected to recieve information about the time between each sampling point. Here the summary statistics of timelag:
## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
## -56815113 894 898 1074 905 49580106 19
And head() of timelag:
## # A tibble: 6 x 6
## TierID TierName DatetimeUTC E N timelag
## <int> <chr> <dttm> <dbl> <dbl> <int>
## 1 1 Ueli 2014-05-28 21:01:14 2570390. 1204820. 844
## 2 1 Ueli 2014-05-28 21:15:18 2570389. 1204826. 895
## 3 1 Ueli 2014-05-28 21:30:13 2570391. 1204821. 898
## 4 1 Ueli 2014-05-28 21:45:11 2570388. 1204826. 922
## 5 1 Ueli 2014-05-28 22:00:33 2570388. 1204819. 883
## 6 1 Ueli 2014-05-28 22:15:16 2570384. 1204828. 898
Here, we created multiple histograms to observe the distributions of sampling intervals, narrowing down the sampling intervals each step. Thereby, we explored the distribution of sampling intervals and whether we find enough data sampled within one minute.
Most sampling intervals were found to be around 10 and 20 minutes.
Around 30000 sampling intervals are within 1 minute.
After finding out that enough data is available, we searched for the individuals with temporal overlapping sampling times, while having a sampling time of about one minute.
We found that the animals with the ID’s 10, 22, 36, 40 and 48 have sampling intervals of one minute in overlapping times in the year 2015
In order to make sure that these five individuals indeed share the same habitat spatially, we produced the following plots, where we used the interactive map to finally identify the individuals and their sex with the corresponding convex hull. For that purpose, we first transformed the data into a spatial object by using the function “st_as_sf”. A Convex Hull was used as a rough circumscription of the activity areas, using the minimum convex polygon method.
Overlapping convex-hulls among wild boar in question, except for individual with ID 48. Also, the sizes of the convex hulls apparently differ among sexes (40 & 48 are males). As expected, females seem to overlap, while the males are rather territorial.
Females are apparently very overlapping spatially, however, time of sampling do not always overlap. Also, males seem to have larger MCP’s and all MCP’s are covering the main forest patch near the lake.
Now we have finally detected and selected our five animals with which we will perform our territorial analysis. They overlap in space and time, and were sampled with a sampling interval of one minute.
Can we identify (core) territories of individual Wild Boar in their resting/sleeping sites and feeding grounds?
We expect that we can at least to some extent identify core territories. Given that, we further expect that these territories differ in size between the resting sites (the forest patch) and the feeding grounds (agricultural sites), and among sexes.
To answer this research question, we used a grid structure framework that was created based on the outermost points of an individuals GPS data. Using this grid structure, we wanted to see if we can implement different metrics for territoriality, using the same framework. This would allow for better comparison among the methods, which in the end may have a different meaning in the biological context.
At the beginning of the analysis of territoriality, we remove all the data processed in the EDA. Then, the data was reloaded, processed again and selected only the five individuals of interest. Thereby we made sure that we have the complete data set we need and to improve reproducibility of the workflow.
In the first analysis, we created a function to produce a frequency plot that shows how many GPS points were sampled within each grid cell per individual. Within the function, we used the aggregate function from the “stats” package, to merge all data points to their respective grid cell. The size of the grid cells must be defined when the function is called.
The function is applicable to any Wild Boar in the Data set and can also handle multiple (or all) animals as inputs, producing a list of plots. For that we extracted first all the animals’ ID’s within the input data set into a list and group the data by each animals ID. Then, we loop through the ID list to extract the corresponding data into a temporary data set, used to produce the grid and to aggregate the data. We finally produce a plot for each animal passed to the function and store that within the list produced in the beginning. After applying the function, these plots can either be arranged to be viewed and compared together, or each plot can separately be extracted from the plot list, as shown in the following lines of code. All major steps are explained within a comment.
This plot represents the absolute number of GPS points in each grid cell for each animal of interest. Each cell is coloured continuously according to the amount of points in it, as shown in each legend.
In this plot we compared the females Caroline (10) & Miriam (22). We can see that the cells in which they were sampled most frequently overlap to some extent. This hints, as expected, on relaxed territoriality among these two females. Note that the area used by Caroline is much larger, which is most likely due to the prolonged time during which this female was sampled.
Here we can see that these two males both cover a large area, larger than the females (except for Miriam, that was sampled over a longer time period, which is probably the reason for the increased size of the area used). Moreover, it appears that the mainly used cells do not overlap and also the large picture hints on territorial behaviour among these individuals.
Using this function, we conclude, works well to depict the habitat used by the individuals. However, using the aggregate function leads to a loss of most information linked to the data points, such as sampling time and the individual it belongs to. Therefore, we decided to explore another method, where we can keep all the information we want, resulting in higher flexibility regarding the analysis performed.
From here on, we used the st_join function from the “sf” package to replace the aggregate function used previously. In a first step, we assured to keep information about Animal ID. Later, in the section about “Recurrence”, we are able to keep information about datetime and additional logical information to construct recurrences to a specific cell in the grid using the st_join method.
This function, as before, is applicable to any Wild Boar in the Data set and can also handle multiple (or all) animals as inputs, producing a list of plots. The function is built in a similar way as the aggregate function, only adapting the sections to merge data to each grid cell. For that purpose, we constructed a variable calles by_cell, in which all data was allocated, to later join it to the grid by spatial information. After applying the function, these can either be arranged to be viewed and compared together, or each plot can separately be extracted from the plot list.
In this plot we can see, that this function produces the same results as with the methods used before. However, we are now able to keep imprtant information. This enables us to use the same framework for the later analysis on recurrences to a grid cell. Furthermore, it allowed us to produce an interactive plot containing multiple layers, each representing the occurrence of an individual.
The following function processes the data set that will be used to produce the interactive plot containing multiple layers. The function must be applied on each individual separately by filtering them first by an animals ID or name.
This interactive plot is very handy to compare the animals directly with each other. On the upper left panel, the different layers can be selected or de-selected, depending on which animals we want to compare. Unfortunately, it is not possible to adjust the size of the legends within these interactive plots, making most of them un observable. However, for a qualitative analysis of the frequencies of GPS points sampled per grid cell based on the corresponding colouration, already this plot can be useful.
The analysis on recurrences is providing us another information about the territory of an individual, as we can see which cells were repeatedly visited and seem to represent the main sleeping (in resting territories) and feeding (in the feeding grounds) cells and territories of a wild boar. In contrast to occurrence, the recurrences are ignoring the time spent in a given grid cell. We modeled the recurrences so that each time the cell was entered from another cell (not necessarily the neighboring cell), a logical variable was converted into “True”. The count of True values per cell then represents the number of times each cell was visited.
As previously, this function is applicable to any Wild Boar in the Data set, but needs to be done for every individual separately. After applying the function, the output will be a data frame containing information about the amount of time a cell was revisited with its corresponding animal ID, so that it can afterwards be plotted with a layer for each animal of interest.
In this visualization we can see that the areas the two females use are very close to each other, however, the recurrence shows that they likely shelter in different spots within the forest.
Here, we see that the males very specifically return to cells within the forest habitat and also in the feeding grounds.
Here, we wanted to provide an example on how to separate the analysis between different parts of the habitat. With the help of the function st_intersects from the “sf” package and additional spatial information for the forest polygons from the provided geopackage “Feldaufnahmen_Fanel.gpkg”, we assigned all the grid cells to either forest or non-forest habitat. Having these separated, we can produce a plot where we can visually analyze occurrence or recurrence per cell in different habitats separately. The split could be done with more detailed habitat information, however, we decided to focus to differentiate between forest and non-forest, to have a look on how the main territories differ between the main resting sites in forests and outside, where wild boar usually go to forage. Also, we restricted this analysis on occurrences, however, the same framework is also applicable on recurrences.
Can we detect territorial behaviour among Wild Boar at the edges of these territories based on trajectory data? In other words, can we detect a change in the trajectory of an “intruder” after a spatio-temporal meet up between two Individuals?
We expect to observe changes in the trajectory of an individual that intrudes the territory of another wild boar, after they have met in close proximity.
In this analysis we wanted to demonstrate how territorial behaviour among wild boar could be analyzed visually. For that purpose, we made a preliminary analysis to detect which of the five individuals with a sampling rate of one point per minute meet (not included in this code, see the files on “trajectories”). A meet-up was defined to be when animals were within 30 meters of each other. We matched the data of each individual by time, calculated the distance from each other, and highlighted all the points within the threshold we set. Based on this analysis, we found that the only animals that met while being monitored were Miriam and Olga. Unfortunately, the two males did not meet in this data set. This would have been important in order to answer our research question, as we expected to observe territorial behaviour especially among males. However, the meetings of Olga and Caroline have also shown interesting results.
Again, we first clean all the data, reload and process it.
To visualize the meeting occasions, we joined the data of Caroline and Olga by time.
In this plot we visualized all the spatio-temporal meeting occasions between Olga and Caroline.
Knowing the points where Caroline and Olga met, we then extracted the point fixes six minutes before and after each point and stored them in a separate variable for each of the three meetings. The six minutes were chosen arbitrarily, however, we found that six minutes suit well to depict the trajectories.
In these plots we can see from where each wild boar came from, starting at the point labeled with “1”. Further, we can see that Caroline and Olga met very closely in all three occasions. This can be seen in each plot where the same numbers of each individual are very close to each other, which means they were at the same location at the same time. It appears that these two females do not show any aggression, as no immediate change in the trajectories can bee seen that would hint on territorial behaviour. Moreover, it seems that they know each other, as the trajectories appear to show attraction instead of repulsion, and they stay close to each other for some time in meetings two and three. Based on the previous analysis on their territories, it may be possible that Caroline and Olga are from the same family, as their core territories are in neighboring cells.
All in all, our methods worked well and produced useful results for the analysis of territories and territorial behaviour. A big advantage of the cell structure we chose is that we can answer multiple multiple questions within the same framework, creating the possibility to easily compare and develop multiple approaches for an analysis. Also, the grid structure can serve as a good tool for quantitative analytics. A difficulty, however, was to decide for appropriate cell sizes or thresholds to define a meeting occasion. By incorporating the st_join function from the “sf” package, we can easily match the spatial data to the grid without any information loss. Therefore, many more approaches become possible and can be explored to answer different question regarding territoriality, habitat use or activity patterns, for example.
To answer our first research question, whether we can identify core territories of individual wild boar, we developed two approaches: The first one depicting the absolute number of GPS-points sampled in each grid cell (“occurrence”), and the second one depicting how often a wild boar returns to a specific cell (“recurrence”). Although showing similar results, the actual meaning of these approaches differs. The occurrence plots nicely show in which area the animals move frequently and resembles a Kernel-density plot. The recurrence approach on the other hand can be very useful to detect the resting sites or main feeding grounds of the individuals. We found, as expected based on literature, that males have a larger territory than females. Also, the territories of the 3 females overlap strongly and even the resting sites appear to be very close to each other. This lead us to conclude that the females indeed do not show territorial behaviour among each other. Males, however, seem to avoid each other more than females. The territories overlap a in some parts, but the pattern of their activity seems to differ spatially and hints on strong territoriality. Further, it may be that in the overlapping area, males avoid each other in a temporal manner. The main resting and feeding sites of the males, contrasting the pattern observed for females, are far apart from each other, even separated by a river. The size of the feeding and resting territories in general are influenced by social behaviour, as well as by competing access to breeding grounds (Spitz and Janeau, 1990). As a rule, the territories of males are larger than those of females. It is interesting to see that the territories of females largely overlap and those of males do not. According to Servanty et al. (2007), this is due to the social nature of the wild boar, with females being more likely to live in a family structure than males. Male wild boars are apparently more exclusive and co-curate with each other (Servanti et al. 2007).
The distinction of forest and non-forest habitat further helped to identify the core territories and feeding grounds, above shown by the example of Caroline. Additionally, it the plot shows that Carolines resting place is not only in the forest, but rather in the marshlands by the lake. Therefore, the inclusion of habitat information can add a lot of context to the territorial analysis and helps drawing conclusions about the behaviour of the animals.
To answer whether we can detect territorial behaviour using trajectories we first extracted all the meeting occasions between the selected individuals. We set the threshold to 30 meters to accept two spatially close points as a meeting occasion. This was selected because we thought 30 meters may be around the maximal distance to trigger territorial behaviour on sighting. However, other distances may be more reasonable. Unfortunately, the only meet-ups we detected within a reasonable distance were between two females, Olga and Caroline. As males are usually territorial, it would have been interesting to see whether it was possible to observe the behaviour with our method. However, with the example of Olga and Caroline, we were able to demonstrate the method and we may indeed be able to detect changes in the trajectory before or after a meeting occasion. Olga and Caroline met three times, and the trajectories appear to be directed towards each other, leading to the conclusion that these two females likely tolerate each other and are familiar. Meetings two and three seem to show that they even spent some time in close proximity together. Therefore, we concluded that we did not observe any territorial behaviour between these two females. This finding is supported by the fact that these two females have resting grounds close to each other in the recurrence analysis. However, regarding the methods, there is a restriction on the data that can be used for this analysis. It is necessary to have GPS points sampled within a relatively short time. Otherwise, such behavioural expressions in territoriality might easily be overseen.
We conclude that the methods we used in this analysis are suitable to analyse aspects of territoriality in animals that were tracked with GPS collars. Interactive maps also seem to be an appropriate way to visually analyse and compare territories among animals, as shown with our wild boar data. The main conclusion we draw, however, is the usefulness of the implemented grid structure, as it allowed us to use different methods to answer similar questions, using only one framework. Many other metrics can be implemented within this framework, making the analysis of such data easier and in a way exploratory to find new, interesting patterns regarding territories. In this project we demonstrated two such approaches. “Occurrences” showed the amount of GPS points sampled within a grid cell, giving an insight about which areas are visited in which frequency and also the time spent in it. As stated in literature, we too found that males have a larger territory than females, and that female territories can overlap, while males express more territoriality. The “Recurrence” analysis nicely showed the revisiting rate of each cell and gives information about where the animal roosts or feeds regularly. For example, this can be useful to locate an animals shelter or where to implement management actions to protect farmlands. In the last analysis we looked at trajectories around meeting occasions. We can observe how the behaviour of an individual changes after getting near a conspecific, giving us a method to observe behavioural patterns connected to territoriality. A requirement to do so, however, is the availability of high resolution sampling GPS data.
Calenge, C., Maillard, D., Fournier, P., Fouque, C., 2004. Efficiency of spreading maize in the garrigues to reduce wild boar (Sus scrofa) damage to Mediterranean vineyards. Eur. J. Wildl. Res. 50, 112–120. https://doi.org/10.1007/s10344-004-0047-y
Dardaillon, M., 1986. Seasonal variations in habitat selection and spatial distribution of wild boar (Sus Scrofa) in the Camargue, Southern France. Behav. Processes 13, 251–268. https://doi.org/10.1016/0376-6357(86)90088-4
Rutten, A., Casaer, J., Strubbe, D., Leirs, H., 2020. Agricultural and landscape factors related to increasing wild boar agricultural damage in a highly anthropogenic landscape. Wildlife Biol. 2020. https://doi.org/10.2981/wlb.00634
Servanty S (2007) Dynamique d’une population chassèe de sangliers (Sus scrofa scrofa) en milieu forestestier. Thése de doctorat, Universitè Claude Bernard Lyon1
Scillitani, L., Toso, S., 2010. Do intensive drive hunts affect wild boar ( Sus scrofa ) spatial behaviour in Italy? Some evidences and management implications 307–318. https://doi.org/10.1007/s10344-009-0314-z
Spitz, F., Janeau, G., 1990. Spatial strategies: an attempt to classify daily movements of wild boar. Acta Theriol. (Warsz). 35, 129–149. https://doi.org/10.4098/at.arch.90-14